package com.panshi.api.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@ApiModel("统一返回结果")
public  class CommonResult<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    //private int status = 1;

    @ApiModelProperty("自定义返回状态")
    private String Code = "200";

    @ApiModelProperty("返回信息解释")
    private String Msg = "success";

    @ApiModelProperty("返回的数据")
    private T data;

    private String token;
}